package com.bbs.dao;

import com.bbs.entity.User;

import java.util.List;

public interface UserDao {
    public User findById(int id);
    List<User> listUserByHot();
    List<User> listUserByTime();
    int insertUser(User user);
    int update(String code);

    User checkPassword(User user);
    User findByEmail(String email);

    void updateUser(User user);

    //个人发帖数量
    void updatepostCount(int uid);

    //个人获赞数量
    void updatelikeCount(int uid);
}
